package ejercicio2_version1;

public abstract class Personaje {
	
	public double vida;
	public double destreza;
	
	
	
	public Personaje(double vida, double destreza) {
		super();
		this.vida = vida;
		this.destreza = destreza;
	}
	
	public double getVida() {
		return vida;
	}
	public void setVida(double vida) {
		this.vida = vida;
	}
	public double getDestreza() {
		return destreza;
	}
	public void setDestreza(double destreza) {
		this.destreza = destreza;
	}

	public abstract void luchar ();
	public abstract void caminar ();
	
	public String toString()
	{
		return this.getClass().getName().substring(this.getClass().getName().indexOf("@")+1,this.getClass().getName().length());
		
	}
}
